{% load i18n %}

<style>
/** Wrapper class name is provided by JS **/
.sentry-error-embed-wrapper {
  display: block;
  outline: none;
  position: fixed;
  z-index: 999;
  width: 100%;
  height: 100%;
  text-align: center;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.6);
  overflow: auto;
}
.sentry-error-embed * {
  margin: 0;
  padding: 0;
  background: inherit;
  color: inherit;
}
.sentry-error-embed {
  background: #fff;
  margin: 0 auto;
  max-height: 80%;
  margin-top: 4%;
  text-align: left;
  border: 1px solid #fff;
  padding: 40px;
  max-width: 700px;
  overflow: auto;
  border-radius: 3px;
  color: #546076;
  box-shadow: 0 0 0 1px rgba(0,0,0, .3), 0 10px 40px rgba(0,0,0, .3);
}
.sentry-error-embed .clearfix {
  *zoom: 1;
}
.sentry-error-embed .clearfix:before,
.sentry-error-embed .clearfix:after {
  display: table;
  content: "";
  line-height: 0;
}
.sentry-error-embed .clearfix:after {
  clear: both;
}
.sentry-error-embed a,
.sentry-error-embed a:visited {
  color: #546076;
  font-weight: 500;
  text-decoration: none;
}
.sentry-error-embed * {
  -webkit-font-smoothing: antialiased;
  font-family: "Helvetica Neue", helvetica, sans-serif;
}
.sentry-error-embed p {
  margin: 0 0 20px;
}
.sentry-error-embed form {
  margin: 0;
}
.sentry-error-embed a:active,
.sentry-error-embed a:focus, a:hover {
  color: #1E263C;
  text-decoration: underline;
}
.sentry-error-embed h2 {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 5px;
  color: #394359;
}
.sentry-error-embed header {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #E8EBF1;
}
.sentry-error-embed header p {
  color: #94A0B3;
  font-size: 16px;
}
.sentry-error-embed .form-field {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}
.sentry-error-embed .form-field label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}
.sentry-error-embed .form-field input,
.sentry-error-embed .form-field textarea {
  font-size: 15px;
  padding: 8px 12px;
  border: 1px solid #BAC2D3;
  background: #FBFBFC;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  height: auto;
  -webkit-box-sizing : border-box;‌​
  -moz-box-sizing : border-box;
  box-sizing : border-box;
  box-shadow: inset 0 1px 1px rgba(0,0,0, .06);
  border-radius: 2px;
}

.sentry-error-embed .form-field input::-webkit-input-placeholder,
.sentry-error-embed .form-field textarea::-webkit-input-placeholder {
  color: #94A0B3;
}

.sentry-error-embed .form-field input:focus,
.sentry-error-embed .form-field textarea:focus {
  outline: none;
  border-color: #94A0B3;
}

.sentry-error-embed .form-errors input,
.sentry-error-embed .form-errors textarea {
  border-color: #E35141;
}
.sentry-error-embed .form-field textarea {
  height: 100px;
}
.sentry-error-embed .form-submit .btn {
  border: none;
  color: #fff;
  background: #25A6F7;
  padding: 10px 15px;
  margin-right: 15px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  float: left;
  border: 1px solid #1D87CE;
  box-shadow: 0 1px 1px rgba(0,0,0, .12);
}
.sentry-error-embed .form-submit .close {
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  float: left;
}
.sentry-error-embed .form-submit .btn:hover {
  background: #1D87CE;
}
.sentry-error-embed .form-submit .powered-by {
  padding: 10px 0;
  margin: 0;
  float: right;
  font-size: 14px;
}
.sentry-error-embed .form-submit .powered-by a {
  text-indent: -9999em;
  display: inline-block;
  color: #1E263C;
  width: 81px;
  height: 18px;
	background-image: url();
  background-repeat: no-repeat;
  background-size: 81px 18px;
  margin-left: 4px;
  position: relative;
  top: 2px;
  opacity: .75;
}
.sentry-error-embed .message-success,
.sentry-error-embed .message-error {
  text-align: center;
  font-size: 16px;
  padding: 30px;
  margin: -21px 0 20px;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0, .06);
}
.sentry-error-embed .message-success {
  border: 1px solid #C9DEC2;
  background: #FCFEFB;
}
.sentry-error-embed .message-error {
  border: 1px solid #ECCFCC;
  background: #FEFDFD;
}
.sentry-error-embed .error-wrapper p:last-child {
  margin-bottom: 0;
}
@media screen and (max-height: 570px) {
  .sentry-error-embed {
    max-height: none;
    margin-top: 0;
  }
}

@media screen and (max-width: 660px) {
  .sentry-error-embed {
    padding: 10px;
    max-width: none;
  }
  .sentry-error-embed h2 {
    font-size: 22px;
  }
  .sentry-error-embed header p {
    font-size: 14px;
  }
}
@media screen and (max-width: 480px) {
  .sentry-error-embed {
    padding: 10px;
    margin-top: 0;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    height: 100%;
    max-height: none;
  }
  .sentry-error-embed h2 {
    font-size: 20px;
    line-height: 24px;
  }
  .sentry-error-embed header p {
    font-size: 13px;
  }
  .sentry-error-embed header h2 > span,
  .sentry-error-embed header p > span {
    display: none;
  }
  .sentry-error-embed .form-submit {
    text-align: center;
  }
  .sentry-error-embed .form-submit .btn,
  .sentry-error-embed .form-submit .close,
  .sentry-error-embed .form-submit .powered-by {
    float: none;
    display: block;
    margin: 0 auto;
  }
  .sentry-error-embed .form-submit .powered-by {
    margin-top: 10px;
    font-size: 10px;
  }
}
</style>

<div class="sentry-error-embed clearfix">
  <header>
    <h2>{{ title }}</h2>
    <p>{{ subtitle }} <span>{{ subtitle2 }}</span></p>
  </header>
  <form>
    <div class="error-wrapper"></div>
    <div class="form-content">
      <div class="form-field clearfix">
        <label>{{ name_label }}</label>
        {{ form.name }}
      </div>
      <div class="form-field clearfix">
        <label>{{ email_label }}</label>
        {{ form.email }}
      </div>
      <div class="form-field clearfix">
        <label>{{ comments_label }}</label>
        {{ form.comments }}
      </div>
    </div>
    <div class="form-submit clearfix">
      <button type="submit" class="btn">{{ submit_label }}</button>
      <a class="close">{{ close_label }}</a>
      {% if show_branding %}
      <p class="powered-by">
        {% trans "Crash reports powered by <a href=\"https://sentry.io\">Sentry</a>" %}
      </p>
      {% endif %}
    </div>
  </form>
</div>
